import { _decorator, Component, Label, LabelComponent, Node } from 'cc'
import { GameManager } from '../GameManager'
const { ccclass, property } = _decorator

@ccclass('GameOverUI')
export class GameOverUI extends Component {
  @property(Label)
  bestScoreLabel: Label = null
  @property(Label)
  currentScoreLabel: Label = null

  showGameOverUI(bestScoreLabel: number, currentScoreLabel: number) {
    this.node.active = true
    this.bestScoreLabel.string = bestScoreLabel.toString()
    this.currentScoreLabel.string = currentScoreLabel.toString()
  }
}
